﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ResultsManagementSystem
{
    public class Result
    {
        private int id;
        private String number;
        private int max;
        private int min;
        private int ave;
        private int allMoreThen85;
        private int sum;

        public Result() { }

        public Result(String number)
        {
            this.number = number;
            this.min = 100;
            this.max = 0;
            this.allMoreThen85 = 1;
            this.ave = 1;
            this.sum = 0;
        }

        public Result(String number,int max,int min,int ave,int allMoreThen85,int sum)
        {
            this.number = number;
            this.max = max;
            this.min = min;
            this.ave = ave;
            this.allMoreThen85 = allMoreThen85;
            this.sum = sum;
        }

        public Result(int id,String number, int max, int min, int ave, int allMoreThen85,int sum)
        {
            this.id = id;
            this.number = number;
            this.max = max;
            this.min = min;
            this.ave = ave;
            this.allMoreThen85 = allMoreThen85;
            this.sum = sum;
        }

        public void setSum(int sum)
        {
            this.sum = sum;
        }

        public int getSum()
        {
            return this.sum;
        }

        public void setId(int id)
        {
            this.id = id;
        }

        public int getId()
        {
            return this.id;
        }

        public void setNumber(String number)
        {
            this.number = number;
        }

        public String getNumber()
        {
            return this.number;
        }

        public void setMax(int max)
        {
            this.max = max;
        }

        public int getMax()
        {
            return this.max;
        }

        public void setMin(int min)
        {
            this.min = min;
        }

        public int getMin()
        {
            return this.min;
        }

        public void setAve(int ave)
        {
            this.ave = ave;
        }

        public int getAve()
        {
            return this.ave;
        }

        public void setAllMoreThen85(int allMoreThen85)
        {
            this.allMoreThen85 = allMoreThen85;
        }

        public int getAllMoreThen85()
        {
            return this.allMoreThen85;
        }
    }
}
